export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
      { component: './404' },
    ],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '系统管理',
    icon: 'setting',
    access: 'canAdmin',
    routes: [
      { path: '/admin/user', name: '用户管理', component: './administer/User' },
      { path: '/admin/role', name: '角色管理', component: './administer/Role' },
      { path: '/admin/menu', name: '菜单管理', component: './administer/Menu' },
      { path: '/admin/config', name: '参数设置', component: './administer/Config' },
      { path: '/admin/log', name: '日志管理', component: './administer/Log' },
      { component: './404' },
    ],
  },
  {
    name: '个人中心',
    icon: 'user',
    path: '/account',
    routes: [
      {
        name: '基础设置',
        icon: 'smile',
        path: '/account/base',
        component: './account/Base',
      },
      {
        name: '安全设置',
        icon: 'smile',
        path: '/account/security',
        component: './account/Security',
      },
    ],
  },
  { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
  { path: '/', redirect: '/welcome' },
  { component: './404' },
];
